package com.mass.core.sys.roleUser.service.impl;

import com.mass.core.sys.roleUser.dao.TSysUserRoleMapper;
import com.mass.core.sys.roleUser.model.TSysUserRoleVo;
import com.mass.core.sys.roleUser.service.TSysUserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
/**
* Created by zsx on 2019/04/09.
*/
@Service
@Transactional
public class TSysUserRoleServiceImpl implements TSysUserRoleService {

    @Autowired
    private TSysUserRoleMapper tSysUserRoleMapper;

	/**
	 * 连表查询用户和角色
	 *
	 * @return
	 */
	@Override
	public List<TSysUserRoleVo> selectRoleAndUser() {
		return tSysUserRoleMapper.selectRoleAndUser();
	}
}
